package com.cloay.photolibdemo;

import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.content.Intent;
import android.os.Bundle;

/**
 * 
 * @ClassName: MainActivity 
 * @author cloay Email:shangrody@gmail.com 
 * @date 2014-12-18 上午10:58:20 
 *
 */
public class MainActivity extends ActionBarActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		Button selectBtn = (Button) findViewById(R.id.select_pic_from_lib_btn);
		selectBtn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MainActivity.this, PickPhotoActivity.class);
				startActivity(intent);
			}
		});
	}

}
